using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class EnemyAnim : MonoBehaviour
{
    // Start is called before the first frame update

    private Animator anim;
    void Start()
    {
        anim = GetComponent<Animator>();
        PlayIdleAnim();
    }

    public void PlayIdleAnim()
    {
        anim.SetBool("Walk",false);
    }

    public void PlayWalkAnim()
    {
        anim.SetBool("Walk", true);
    }

    public void PlayKillAnim()
    {
        anim.SetTrigger("Kill");
    }

    public void PlayDieAnim() {
        anim.SetTrigger("die");
    }

    // Update is called once per frame
    void Update()
    {

    }
}
